package com.fjec.base.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 006.协议表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@Data
@TableName("sys_agreement")
public class SysAgreement implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("id")
    private Long id;

    /**
     * 协议编码
     */
    @TableField("AgreeCode")
    private String agreeCode;

    /**
     * 协议内容
     */
    @TableField("AgreeContent")
    private String agreeContent;

    /**
     * 协议版本号
     */
    @TableField("AgreeVer")
    private Integer agreeVer;

    /**
     * 是否有效 0=否
1=是
     */
    @TableField("Valid")
    private Integer valid;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 协议标题
     */
    @TableField("AgreeTitle")
    private String agreeTitle;

    /**
     * 协议值
     */
    @TableField("AgreeValue")
    private Integer agreeValue;

    @Override
    public String toString() {
        return "SysAgreement{" +
            "id=" + id +
            ", agreeCode=" + agreeCode +
            ", agreeContent=" + agreeContent +
            ", agreeVer=" + agreeVer +
            ", valid=" + valid +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
